/*
	Copyright 2010-2014 David "Alemarius Nexus" Lerch

	This file is part of gtatools-gui.

	gtatools-gui is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	gtatools-gui is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with gtatools-gui.  If not, see <http://www.gnu.org/licenses/>.

	Additional permissions are granted, which are listed in the file
	GPLADDITIONS.
 */

#ifndef DFFTEXTURESOURCEDIALOG_H_
#define DFFTEXTURESOURCEDIALOG_H_

#include <QtGui/QDialog>
#include <ui_DFFTextureSourceDialog.h>



class DFFTextureSourceDialog : public QDialog {
	Q_OBJECT

public:
	DFFTextureSourceDialog(QWidget* parent = NULL);
	~DFFTextureSourceDialog();
	void addTextureSource(QString source, bool path = false);
	int getTextureSourceCount() const { return ui.list->count(); }
	QString getTextureSource(int idx, bool& path) const;

private:
	void updateMoveButtonState();

private slots:
	void currentSourceChanged(QListWidgetItem* item, QListWidgetItem* prev);
	void addRequested();
	void editRequested();
	void removeRequested();
	void moveUpRequested();
	void moveDownRequested();

private:
	Ui_DFFTextureSourceDialog ui;
};

#endif /* DFFTEXTURESOURCEDIALOG_H_ */
